<?php require VIEW_ROOT.'/common/header.php'?>

<form action="?m=finance&a=assets_<?php echo isset($res['id']) ? 'edit' : 'add'; ?>" method="post">

<input type="hidden" name="id" value="<?php echo isset($res['id']) ? $res['id'] : 0; ?>" />

<table>
	<tr>
		<th colspan="2">资产</th>
	</tr>
	<tr>
		<td width="100">名称</td>
		<td class="frm"><input type="text" name="name" value="<?php echo isset($res['name']) ? $res['name'] : ''; ?>" /></td>
	</tr>
	<tr>
		<td width="100">总额</td>
		<td class="frm"><input type="text" name="amount" value="<?php echo isset($res['amount']) ? $res['amount'] : ''; ?>" /></td>
	</tr>
	<tr>
		<td>备注</td>
		<td class="frm">
			<textarea name="note"><?php echo isset($res['note']) ? $res['note'] : ''; ?></textarea>
		</td>
	</tr>
	<tr>
		<td></td>
		<td class="frm"><input type="submit" value="提交" /></td>
	</tr>
</table>
</form>

<?php require VIEW_ROOT.'/common/footer.php'?>
